﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmOrdenCompra.aspx.cs" Inherits="proyGestionActivos.Gestion.wfrmOrdenCompra" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPager" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
        #principal
        {
            width: 900px;
            margin: 0 auto;
        }
        .tabs
        {
            width: 90%;
            margin: 0 auto;
        }
        .fieldset_datos
        {
            width: 100%;
        }
        .campos_vacios
        {
            width: 7em;
        }
        .labels
        {
            width: 125px;
        }
        .tabs fieldset
        {
            margin-top: 1.5em;
        }
        .tabs fieldset #fieldset_content
        {
            padding-left: 7em;
        }
        .tabs fieldset #fieldset_content1
        {
            padding-left: 7em;
        }
        .tabs fieldset .fieldset_filas
        {
            padding: .5em 0;
        }
        .filas
        {
            padding: .5em 3em;
        }
        .tabs .titulo
        {
            width: 100%;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 1em;
            margin-top: .5em;
        }
        .pad
        {
            padding: 0.2cm 1cm 0.2cm 1cm;
            text-align: left;
        }
        
        .p
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            text-align: left;
        }
        .pad
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            
        }
        .style1
        {
            width: 134px;
        }
        .style2
        {
            width: 102px;
        }
    </style>
    <script type="text/javascript">
        function cargarDescripciones() {
            btnAccion.DoClick();
        }
    </script>
    <script type="text/javascript">
        function soloDocumento(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "abcdefghijklmnopqrstuvwxyz0123456789";
            especiales = [8, 127];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="tabs" style="background-color: White">
                    <div class="titulo">
                        ORDEN COMPRA</div>
                    <fieldset>
                        <div id="fieldset_content">
                            <table style="width: 97%">
                                <tr>
                                    <td class="labels fieldset_filas">
                                        N° OC
                                    </td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtOrdenCompraOC" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        <dx:ASPxTextBox ID="txtIDCodigo" runat="server" Width="5px" 
                                            ClientVisible="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Usuario</td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtUsuarioOC" runat="server" Width="170px" 
                                            ClientEnabled="False">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        Programa</td>
                                    <td class="campos_vacios">
                                        <dx:ASPxTextBox ID="txtProgramaOC" runat="server" ClientEnabled="False" 
                                            Width="170px">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Area</td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtAreaOC" runat="server" ClientEnabled="False" 
                                            Width="170px">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        N° Licencias
                                    </td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtNLicenciasOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Sustento</td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtSustentoOC" runat="server" Width="170px" MaxLength="400" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Cuenta</td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtCuentaOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        &nbsp;</td>
                                    <td class="campos_vacios">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Requerido</td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxDateEdit ID="cborequeridoOC" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <CalendarProperties>
                                                <HeaderStyle Spacing="1px" />
                                                <FooterStyle Spacing="4px" />
                                            </CalendarProperties>
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADC">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td class="style2">
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                                 <td align="center" style="width:25%">
                                                     <dx:ASPxButton ID="btnPropuestaOC" runat="server" CausesValidation="False" 
                                                         CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                         SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Propuesta">
                                                     </dx:ASPxButton>
                                                </td>
                                                <td align="center" style="width:25%">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnCAceptarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        onclick="btnCancelarP_Click" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnModificarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Modificar">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnCancelarOC" runat="server" CausesValidation="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="6">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                    <table width="100%">
                        <tr>
                            <td align="right" class="filas">
                                &nbsp;
                            </td>
                            <td align="left" class="filas">
                                &nbsp;
                            </td>
                        </tr>
                    </table>

                </div>
                <dx:ASPxPopupControl ID="popupConfirmar" runat="server" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                    AllowDragging="True" ClientInstanceName="popupConfirmar" 
                    CloseAction="CloseButton" EnableHotTrack="False" HeaderText="Confirmar" 
                    Modal="True" PopupHorizontalAlign="WindowCenter" 
                    PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" 
                    Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                        <table align="center" width="100%">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxLabel ID="lblmenConfir" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False" OnClick="btnAceptar_Click">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Cancelar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            <dx:ASPxPopupControl ID="popupOK" runat="server" 
                    AllowDragging="True" ClientInstanceName="popupOK" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    EnableHotTrack="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                                </LoadingPanelImage>
                                <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                                </ContentStyle>
                                <HeaderStyle>
                                <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                                    PaddingTop="3px" />
                                </HeaderStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                                        <table align="center" width="100%">
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <dx:ASPxLabel ID="lblmenOK" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxButton ID="btnAceptarOK" runat="server" AutoPostBack="False" 
                                                        CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                        CssPostfix="BlackGlass" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar" 
                                                        Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <dx:ASPxPopupControl ID="popupConfirProg" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupConfirProg" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    EnableHotTrack="False" HeaderText="Confirmar" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="300px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                            <table align="center" width="100%">
                                <tr>
                                    <td align="center" colspan="2">
                                        <dx:ASPxLabel ID="lblmenConfir0" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <dx:ASPxButton ID="btnAceptarPrograma" runat="server" CausesValidation="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            OnClick="btnAceptarPrograma_Click" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Aceptar" 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupConfirProg.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="center">
                                        <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" 
                                            CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cancelar" 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupConfirProg.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            <br />
                <dx:ASPxPopupControl ID="popupAgregarProg" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupAgregarProg" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                    HeaderText="Agregar Programa" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    ShowPageScrollbarWhenModal="True" 
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="400px">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" 
                        PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" 
                            SupportsDisabledAttribute="True">

                            <table style="width: 97%">
                                <tr>
                                    <td class="p">
                                        Codigo
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtCodigoPrograma" runat="server" ClientEnabled="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="170px">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td>
                                    </td>
                                    <td >
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        Programa
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtPrograma" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="p">
                                        Descripción
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtDescripcion" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="400" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        Fabricante
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtFabricante" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            MaxLength="20" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            Width="170px">
                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="p">
                                        Estado
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboEstado" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SelectedIndex="0" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Activo" Value="1" />
                                                <dx:ListEditItem Text="Inactivo" Value="0" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" SetFocusOnError="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="p">
                                        <dx:ASPxCheckBox ID="chkConcurrente" runat="server" CheckState="Unchecked" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Concurrente">
                                            <ValidationSettings ErrorText="Error has ocurredd">
                                            </ValidationSettings>
                                        </dx:ASPxCheckBox>
                                    </td>
                                    <td>
                                    </td>
                                    <td >
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                <td colspan="4">
                                <table width="100%">
                                <tr>
                                <td align="center"><dx:ASPxButton ID="btnAgregar" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Agregar" 
                                            ValidationGroup="ADCNET" Width="100px" OnClick="btnAgregar_Click">
                                        </dx:ASPxButton></td>
                                <td align="center"><dx:ASPxButton ID="btnModificar" runat="server" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Modificar" 
                                            ValidationGroup="ADCNET" Width="100px" OnClick="btnModificar_Click">
                                        </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnEliminar" runat="server" 
                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                        OnClick="btnEliminar_Click" 
                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Eliminar" 
                                        ValidationGroup="ADCNET" Visible="False" Width="100px">
                                    </dx:ASPxButton>
                                    </td>
                                <td align="center">  &nbsp;</td>
                                </tr>
                                <tr>
                                <td colspan="3" align="center">
                                <dx:ASPxGridView ID="grdPrograma" runat="server" AutoGenerateColumns="False" 
                                            CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                            EnableCallBacks="False" KeyFieldName="CodigoPrograma" 
                                            OnFocusedRowChanged="grdPrograma_FocusedRowChanged" Width="80%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="CodigoPrograma" VisibleIndex="0">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="NombrePrograma" VisibleIndex="1">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Fabricante" VisibleIndex="2">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Descripcion" VisibleIndex="3">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Estado" ShowInCustomizationForm="True" 
                                                    Visible="False" VisibleIndex="4">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="Concurrente" 
                                                    ShowInCustomizationForm="True" Visible="False" VisibleIndex="5">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsPager PageSize="10000" Visible="False">
                                            </SettingsPager>
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                CssPostfix="BlackGlass">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                            </Styles>
                                            <StylesEditors>
                                                <CalendarHeader Spacing="1px">
                                                </CalendarHeader>
                                                <ProgressBar Height="25px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                </td>
                                </tr>
                                <tr>
                                <td colspan="3" align="center">
                                <dx:ASPxButton ID="btnCerrar" runat="server" AutoPostBack="False" 
                                            CausesValidation="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Cerrar" 
                                            Width="100px" OnClick="btnCerrar_Click">
                                            <ClientSideEvents Click="function(s, e) {
	popupAgregarProg.Hide();
}" />
                                        </dx:ASPxButton>
                                </td>
                                </tr>
                                </table>
                                </td>
                                </tr>
                                
                            </table>

                            
                            <br />
                            <br />
                            <br />
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                            </ContentTemplate>
        </asp:UpdatePanel>
</asp:Content>
